<!DOCTYPE html>
<html>
<head>
    <title>Array Type Example 13</title>
    <script type="text/javascript">
        var values = [1, 2, 3, 4, 5];
        values.reverse();
        alert(values);       //5,4,3,2,1
    </script>
</head>
<body>

</body>
</html>